using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DocumentsManager : MonoBehaviour
{
    public static DocumentsManager instance;

    private void Awake()
    {
        instance = this;
    }

    public NPCManager nPCManager;
    
    public GameObject iDCardPrefab;
    public GameObject workIDCardPrefab;
    public GameObject docExamplePrefab;
    
    public Transform generateDocPosition;

    public Transform BigTable_front;
    public Transform SmallTable_front;
    
    public Transform GiveBackArea_BottomLeftCorner;
    public Transform GiveBackArea_TopRightCorner;

    public GameObject GenerateDocument(GameObject documentPrefab)
    {
        GameObject thisDocument = 
        Instantiate(documentPrefab, generateDocPosition.position, Quaternion.identity,SmallTable_front);

        thisDocument.GetComponent<DocumentsOnTable>().BigTable_front = BigTable_front;
        thisDocument.GetComponent<DocumentsOnTable>().SmallTable_front = SmallTable_front;
        thisDocument.GetComponent<DocumentsOnTable>().GiveBackArea_BottomLeftCorner = GiveBackArea_BottomLeftCorner;
        thisDocument.GetComponent<DocumentsOnTable>().GiveBackArea_TopRightCorner = GiveBackArea_TopRightCorner;

        return thisDocument;
    }
    
}
